<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>Blog - Content Manager</title>
    <link rel="stylesheet" href="/static/admin/lib/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/admin/css/base.css">
    {{ block 'css' }}{{ /block }}
</head>

<body>

    {{ block 'main' }}{{ /block }}

    <script src="/static/admin/lib/jquery/dist/jquery.min.js"></script>
    <script src="/static/admin/lib/bootstrap/js/bootstrap.min.js"></script>

    <script>
        $(() => {
            if(location.pathname.startsWith('/admin/user')){
                $('.menu .item').eq(0).addClass('active')
            }else if(location.pathname.startsWith('/admin/article')){
                $('.menu .item').eq(1).addClass('active')
            }
        })
    </script>
    {{ block 'js' }}{{ /block }}
</body>

</html>